package com.neusoft.neu24.his3.controller;

import com.neusoft.neu24.his3.HelloApplication;
import com.neusoft.neu24.his3.util.GlobalData;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

/**
 * LoginController controller
 *
 * @author Administrator
 * @version 2024/06/05 20:34
 **/
public class LoginController {
//    绑定
    @FXML
    public  void btn_login() throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("main-view.fxml"));
        Scene scene = new Scene(fxmlLoader.load(), 1280, 4768);
        Stage stage = GlobalData.getStage();
        stage.setWidth(  1280 );
        stage.setHeight(768);
        stage.setScene(scene);
        System.out.println("btn_login");
    }
}